<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>账户管理</title>
<script type="text/javascript" src="../js/jquery-1.11.0.min.js"></script>
<script type="text/javascript">
	function changePassword(id) {
		
		 $.ajax({
		   type:'post',
		   url:'${pageContext.request.contextPath}/user/setInfo.action',
		   data:'id='+id,
		   success:function(data){
			   window.location.href="${pageContext.request.contextPath}/user/changePassword.action";
		   }	   
	   })
	}
</script>
</head>
<body>


<div style="width: 700px;height: 245px;border:1px solid #999;padding:2px;padding-left: 20px;">
<h2>个人信息：</h2>
<p>姓名：<input type="text" value="${userInfo.name}"></p>
<p>电话：<input type="text" value="18758171751"></p>
<p>部门：<input type="text" value="技术部"></p>
<p>职位：<input type="text" value="CTO"></p>
<button>修改信息</button>
</div>
<br>
<div style="width: 700px;height: 200px;border:1px solid #999;padding:2px;padding-left: 20px;">
<h2>账户信息：</h2>
<p>账号：<input type="text" value="${userInfo.name}"></p>
<p>密码：<button onclick="changePassword(${userInfo.id})">修改密码</button>&nbsp;<button>密保管理</button></p>
<p>(为了您的账户安全,请定期修改密码!)</p>
</div>


</body>
</html>